home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 05.zip / BS1 part 5 / SASC_6.0_Disk_4.adf / Compiler_Headers / Include / rexx / errors.h next >
C/C++ Source or Header  |  1992-07-30  |  4KB  |  79 lines

  1. #ifndef REXX_ERRORS_H
  2. #define REXX_ERRORS_H
  3. /*
  4. **    $Filename: rexx/errors.h $
  5. **    $Release: 2.04 Includes, V37.4 $
  6. **    $Revision: 1.4 $
  7. **    $Date: 91/11/08 $
  8. **
  9. **    Definitions for ARexx error codes
  10. **
  11. **    (C) Copyright 1987,1988,1989,1990 William S. Hawes
  12. **    (C) Copyright 1990-1991 Commodore-Amiga, Inc.
  13. **        All Rights Reserved
  14. */
  15.  
  16. #define ERRC_MSG  0               /*  error code offset           */
  17. #define ERR10_001 (ERRC_MSG+1)           /*  program not found           */
  18. #define ERR10_002 (ERRC_MSG+2)           /*  execution halted           */
  19. #define ERR10_003 (ERRC_MSG+3)           /*  no memory available           */
  20. #define ERR10_004 (ERRC_MSG+4)           /*  invalid character in program*/
  21. #define ERR10_005 (ERRC_MSG+5)           /*  unmatched quote           */
  22. #define ERR10_006 (ERRC_MSG+6)           /*  unterminated comment        */
  23. #define ERR10_007 (ERRC_MSG+7)           /*  clause too long           */
  24. #define ERR10_008 (ERRC_MSG+8)           /*  unrecognized token           */
  25. #define ERR10_009 (ERRC_MSG+9)           /*  symbol or string too long   */
  26.  
  27. #define ERR10_010 (ERRC_MSG+10)        /*  invalid message packet      */
  28. #define ERR10_011 (ERRC_MSG+11)        /*  command string error        */
  29. #define ERR10_012 (ERRC_MSG+12)        /*  error return from function  */
  30. #define ERR10_013 (ERRC_MSG+13)        /*  host environment not found  */
  31. #define ERR10_014 (ERRC_MSG+14)        /*  required library not found  */
  32. #define ERR10_015 (ERRC_MSG+15)        /*  function not found           */
  33. #define ERR10_016 (ERRC_MSG+16)        /*  no return value           */
  34. #define ERR10_017 (ERRC_MSG+17)        /*  wrong number of arguments   */
  35. #define ERR10_018 (ERRC_MSG+18)        /*  invalid argument to function*/
  36. #define ERR10_019 (ERRC_MSG+19)        /*  invalid PROCEDURE           */
  37.  
  38. #define ERR10_020 (ERRC_MSG+20)        /*  unexpected THEN/ELSE        */
  39. #define ERR10_021 (ERRC_MSG+21)        /*  unexpected WHEN/OTHERWISE   */
  40. #define ERR10_022 (ERRC_MSG+22)        /*  unexpected LEAVE or ITERATE */
  41. #define ERR10_023 (ERRC_MSG+23)        /*  invalid statement in SELECT */
  42. #define ERR10_024 (ERRC_MSG+24)        /*  missing THEN clauses        */
  43. #define ERR10_025 (ERRC_MSG+25)        /*  missing OTHERWISE           */
  44. #define ERR10_026 (ERRC_MSG+26)        /*  missing or unexpected END   */
  45. #define ERR10_027 (ERRC_MSG+27)        /*  symbol mismatch on END      */
  46. #define ERR10_028 (ERRC_MSG+28)        /*  invalid DO syntax           */
  47. #define ERR10_029 (ERRC_MSG+29)        /*  incomplete DO/IF/SELECT     */
  48.  
  49. #define ERR10_030 (ERRC_MSG+30)        /*  label not found           */
  50. #define ERR10_031 (ERRC_MSG+31)        /*  symbol expected           */
  51. #define ERR10_032 (ERRC_MSG+32)        /*  string or symbol expected   */
  52. #define ERR10_033 (ERRC_MSG+33)        /*  invalid sub-keyword           */
  53. #define ERR10_034 (ERRC_MSG+34)        /*  required keyword missing    */
  54. #define ERR10_035 (ERRC_MSG+35)        /*  extraneous characters       */
  55. #define ERR10_036 (ERRC_MSG+36)        /*  sub-keyword conflict        */
  56. #define ERR10_037 (ERRC_MSG+37)        /*  invalid template           */
  57. #define ERR10_038 (ERRC_MSG+38)        /*  invalid TRACE request       */
  58. #define ERR10_039 (ERRC_MSG+39)        /*  uninitialized variable      */
  59.  
  60. #define ERR10_040 (ERRC_MSG+40)        /*  invalid variable name       */
  61. #define ERR10_041 (ERRC_MSG+41)        /*  invalid expression           */
  62. #define ERR10_042 (ERRC_MSG+42)        /*  unbalanced parentheses      */
  63. #define ERR10_043 (ERRC_MSG+43)        /*  nesting level exceeded      */
  64. #define ERR10_044 (ERRC_MSG+44)        /*  invalid expression result   */
  65. #define ERR10_045 (ERRC_MSG+45)        /*  expression required           */
  66. #define ERR10_046 (ERRC_MSG+46)        /*  boolean value not 0 or 1    */
  67. #define ERR10_047 (ERRC_MSG+47)        /*  arithmetic conversion error */
  68. #define ERR10_048 (ERRC_MSG+48)        /*  invalid operand           */
  69.  
  70. /*
  71.  * Return Codes for general use
  72.  */
  73. #define RC_OK      0L               /*  success               */
  74. #define RC_WARN   5L               /*  warning only           */
  75. #define RC_ERROR  10L               /*  something's wrong           */
  76. #define RC_FATAL  20L               /*  complete or severe failure  */
  77.  
  78. #endif
  79.